package com.bw.classfiy.mvvm.adapter;

import com.bw.classfiy.R;
import com.bw.mvvm.entity.ClassFiyEntity;
import com.bw.mvvm.network.load.LoadImage;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class ClassFiyRigthAdapter extends BaseQuickAdapter<ClassFiyEntity.DataBean, BaseViewHolder>
    {

    public ClassFiyRigthAdapter() {
        super(R.layout.item_classfiy_value);
        addChildClickViewIds(R.id.classfiy_values_imag);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ClassFiyEntity.DataBean dataBean) {
        LoadImage.loadMatchImg(dataBean.getCategory_icon(),baseViewHolder.getView(R.id.classfiy_values_imag));
        baseViewHolder.setText(R.id.classfiy_values_tv, dataBean.getCategory_name());
    }


}
